package cn.com.maven.designpattern.prototype;

/**
 * @Author YongQiang
 * @Date 2021/5/18 13:24
 * @Version 1.0
 */
public class PrototypeImpl1 implements Prototype,Cloneable {

    public String name;

    public int age;

    @Override
    public Prototype clone() throws CloneNotSupportedException {
            return (PrototypeImpl1) super.clone();
    }

    @Override
    public String toString() {
        return "PrototypeImpl1{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
